package com.zjmcollege.hotpot.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-11-07 17:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class InterviewCaseModel {
    private String question;
    private String questionHtml;
    private String answer;
    private String answerHtml;
    private String editorValue;
    private int type;
    /**
     * 文档类型：
     * 1 : ueditor html 文档
     * 2:  md 文档
     */
    private Integer docType = 1;

    public String getAnswer() {
        return answer == null ? editorValue : answer;
    }

    public String getAnswerHtml() {
        return answerHtml == null ? editorValue : answerHtml;
    }

    public String getQuestionHtml() {
        return question;
    }
}
